# !/usr/bin/env python
# -*- coding: utf-8 -*-


class CacheKey(object):
    # 微信消息的MSG_ID(排重)
    MSG_ID = "msg_id"
    ACCESS_TOKEN = "access_token_by_appid"
    ACCESS_TOKEN_EXPIRES_AT = "access_token_expires_at_by_appid"
    JSAPI_TICKET = 'jsapi_ticket_by_appid'
    JSAPI_TICKET_EXPIRES_AT = "jsapi_ticket_expires_at_by_appid"
    WEB_ACCESS_TOKEN = "web_access_token_by_appid"
    WEB_ACCESS_TOKEN_EXPIRES_AT = "web_access_token_expires_at_by_appid"
    WEB_REFRESH_TOKEN = "web_refresh_token_by_appid"
    # Restful API
    TOKEN = "token"
    TOKEN_EXPIRES_AT = "token_expires_at"
    # 带参数二维码
    QR_SCENE = "qr_scene_by_appid"
    QR_LIMIT_SCENE = "qr_limit_scene_by_appid"
    QR_LIMIT_STR_SCENE = "qr_limit_str_scene_by_appid"
    # 键:{openid} 值:{设备编号}
    DID = "device_id"
    DEVICE_TYPE = "device_type"
    # ======== Hash 保存 ========
    PARTNER_INFO = 'partner_info_by_pid'  # wxtoken,appid,secret,encoding_aes_key
    USER_INFO = 'user_info_by_openid'
    USER_NOTIFY = 'user_notify_by_openid'  # 检查用户是否有提示消息，进入系统时的弹窗提示
    SYSTEM_NOTIFY_MSG = 'system_notify_msg_by_openid'  # 检查用户的站内消息条数
    Kitchen_NOTIFY_MSG = 'kitchen_notify_msg_by_openid'  # 厨房里通知，主要指后台管理员发送针对全部或部分标签用户
    TEMPORARY_USER_DEVICE = 'temporary_user_device_by_openid'  # 临时用户设备关系
    WEEK_NOTIFY_NUM = 'week_notify_num_by_openid'  # 处理用户一周的互动量
    WEEK_HISTORY_NOTIFY_NUM = 'week_history_notify_num_by_openid'  # 处理用户一周的互动量上一周记录
    GLOBAL_POSITION_NUM = 'global_position_num'  # 全部图片位置编号
    WEEKLY_DETAILED_PUSH_TIME = 'weekly_detailed_push_time'  # 周报发送详细时间
    LIKE_ROBOT_GO_FLAG = 'like_robot_go_flag'  # 是否启动机器人标识
    RELATED_USER_OPENID = 'related_user_openid'  # 用户相关openid列表
    USER_CHOOSE_MENU = 'user_choose_menu'  # 用户选择的顶部菜单
    USER_WECHAT_NOTIFY = 'user_wechat_notify'  # 用户社区消息微信公众号菜单开关
    USER_SNS_NOTIFY = 'user_sns_notify'  # 用户社区消息站内提醒开关
    USER_QRCODE_TOUCH = 'user_qrcode_touch'  # 用户个人二维码点击提示（第一次）
    USER_CALLBACK_TAG = 'user_callback_tag'  # 用户回调标记
    VOTE_REMIND_BAR = 'vote_remind_bar'  # 投票提醒条
    POPULAR_RANK = 'popular_rank'  # 投票提醒条
    USER_QR_IMG = 'user_qr_img'  # 用户个性二维码地址
    USER_PAGE_SHARE = 'user_page_share'  # 用户页面分享提示开关
    DEVICE_WAIT_BUY_DATA = 'device_wait_buy_data'  # 设备准备结算单额商品
    USER_WECHAT_SUB_NOTIFY = 'user_wechat_sub_notify'  # 用户关注公众号与否的通知
    RECIPES_CACHE = 'recipes_cache'  # 菜谱缓存
    PUB_DIARY_USER = 'pub_diary_user'  # 当日连续打卡的用户列表
    USER_FINISH_CIRCLE = 'user_finish_circle'  # 用户完成了一个积分打卡的周期
    USER_CHOOSE_TAG_AWARD = 'user_choose_tag_award'  # 用户第一次选择完标签得到初始积分奖励
    USER_PUB_DIARY_NUM = 'user_pub_diary_num'  # 用户在某一天发表的日记数
    SHARE_QR_CACHE = 'share_qr_cache'  # 分享页生成的图片url缓存
    USER_AWARD_CACHE = 'user_award_cache'  # 用户获奖缓存
    USER_OPENID_UNIONID = 'user_openid_unionid'  # 用户unionid和openId的对应关系
    USER_UNIONID_BY_OPENID = 'user_unionid_by_openid'  # 通过openid对应的用户unionid
    ADDRESS_ID = 'address_device'
    USER_VOICE_CACHE = 'user_voice_cache'  # 用户录音权限缓存
    ACTIVITY_NOTIFY_CACHE = 'activity_notify_cache'  # 活动通知缓存
